Azure Engagement System API - Implementation Template
Developer guide
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.
| Module | Description |
|---|---|
| build-query-web-engagement | |
| ping-check-get-dependency-response | |
| query-test-db.json | |
| web-engagement-request-mapping | Provides mappings to transform from input request to target NoSQL document data format. |
| webengagement-response-mapping | Provides mappings to transform from NoSQL document to API specification response data format. |
build-query-web-engagement
Source:
./src/main/resources/dwl/build-query-web-engagement.dwl
ping-check-get-dependency-response
Source:
./src/main/resources/dwl/ping-check-get-dependency-response.dwl
query-test-db.json
Source:
./src/main/resources/dwl/query-test-db.json.dwl
web-engagement-request-mapping
Provides mappings to transform from input request to target NoSQL document data format.
Source:
./src/main/resources/dwl/web-engagement-request-mapping.dwl
Mapping Tables
Maps input request to Azure web engagement data format
| Source System | Azure | Description |
|---|---|---|
| id | individualId | The unique individualId. |
| individualId | individualId | Id of the patient user account. |
| emailAddress | emailAddress | The email Id of the patient user account. |
| sessionId | sessionId | The unique number assigned to the user's session for the duration of the visit. |
| pageViews | pageViews | The number of times the page is viewed. |
| averageTimeonPage | averageTimeonPage | The average time spent on page. |
| memberName | memberName | The name of the patient. |
| contentName | contentName | The name of the content or page that the patient visited on the websit. |
| contentType | contentType | The type of the content or page that the patient visited on the website. E.g article or video. |
| lastVisitedDate | lastVisitedDate | The count of a website's total page views divided by the total number of sessions that have taken place. |
| lastModifiedDate | lastModifiedDate | The average duration of the session in seconds. |
| auditInfo.createdDate | createdDate | The Created date. |
| auditInfo.createdBy | createdBy | CreatedBy user. |
| auditInfo.updatedDate | updatedDate | The updated date. |
| auditInfo.updatedBy | updatedBy | The name of user updated. |
| auditInfo.isDeleted | isDeleted | Default to false. |
webengagement-response-mapping
Provides mappings to transform from NoSQL document to API specification response data format.
Source:
./src/main/resources/dwl/webengagement-response-mapping.dwl
Mapping Tables
Maps Azure Cosmos DB NoSQL Json document to api specification response data format
| Azure | Target System | Description |
|---|---|---|
| individualId | individualId | Id of the patient user account. |
| emailAddress | emailAddress | The email Id of the patient user account. |
| sessionId | sessionId | The unique number assigned to the user's session for the duration of the visit. |
| pageViews | pageViews | The number of times the page is viewed. |
| averageTimeonPage | averageTimeonPage | The average time spent on page. |
| memberName | memberName | The name of the patient. |
| contentName | contentName | The name of the content or page that the patient visited on the websit. |
| contentType | contentType | The type of the content or page that the patient visited on the website. E.g article or video. |
| lastVisitedDate | lastVisitedDate | The count of a website's total page views divided by the total number of sessions that have taken place. |
| lastModifiedDate | lastModifiedDate | The average duration of the session in seconds. |
| auditInfo.createdDate | createdDate | The Created date. |
| auditInfo.createdBy | createdBy | CreatedBy user. |
| auditInfo.updatedDate | updatedDate | The updated date. |
| auditInfo.updatedBy | updatedBy | The name of user updated. |
| auditInfo.isDeleted | isDeleted | Default to false. |